home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2922 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  788 b 

  1. Path: softsite.co.at!wsog
  2. Date: 24 Jan 1996 20:29:00 +0200
  3. From: wsog@softsite.co.at (Walter Sommergruber)
  4. Newsgroups: comp.lang.c
  5. Message-ID: <61VnNPt6nTB@softsite.co.at>
  6. Subject: localtime
  7. X-Newsreader: XP v3.02
  8. X-Charset: ISO-8859-1
  9. Organization: Sommergruber Software & Dienstleistungen
  10.  
  11.  
  12. In ANSI C the function localtime returns a pointer to a struct tm.
  13. The documentation of my compiler says
  14. "tm.tm_year = Year (current year minus 1900)"
  15.  
  16. Is this defined behaviour ?
  17. Can I assume "tm_year+1900 = real year" will work also after the
  18. year 2000 ? Or is this compiler dependend ?
  19.  
  20. ---                                     Take a look at ...
  21. Walter Sommergruber                                    The Software Site
  22. email: wsog@softsite.co.at           http://www.softsite.co.at/softsite/
  23.